function generatePhoneNumberDivSettings() {
    // 生成9个随机的139号码
    function generatePhoneNumbers(count) {
        const prefix = '139';
        const user = new Set();

        while (user.size < count) {
            const suffix = Array.from({ length: 8 }, () => Math.floor(Math.random() * 10)).join('');
            user.add(prefix + suffix);
        }

        return Array.from(user).map(num => num.replace(/(\d{3})(\d{4})(\d{4})/, '$1$2$3'));
    }

    // 创建电话选择网格
    function createPhoneGrid() {
        const container = document.getElementById('phoneContainer');
        const phoneNumbers = generatePhoneNumbers(9);

        phoneNumbers.forEach((phone, index) => {
            const wrapper = document.createElement('div');
            wrapper.className = 'checkbox-wrapper-46';
            wrapper.innerHTML = `
                            <input 
                              type="radio"    
                              name="cardNumber" 
                              id="phone-${index}" 
                              class="inp-cbx" 
                              value="${phone}"
                            />
                            <label for="phone-${index}" class="cbx">
                              <span>
                                <svg viewBox="0 0 12 10" height="10px" width="12px">
                                  <polyline points="1.5 6 4.5 9 10.5 1"></polyline>
                                </svg>
                              </span>
                              <span>${phone}</span>
                            </label> 
                          `;
            container.appendChild(wrapper);
        });

        // 添加事件监听确保只能选一个
        container.addEventListener('change', e => {
            if (e.target.type === 'radio') {
                console.log('选中的号码:', e.target.value);
            }
        });
    }

    // 初始化
    createPhoneGrid();
}
